﻿using Microsoft.Extensions.DependencyInjection;

namespace DYH.Extensions.DependencyInjection;

/// <summary>
/// 依赖注入帮助类
/// </summary>
public static class ServiceCollectionHelperEx
{
    /// <summary>
    /// 建立依赖注入
    /// </summary>
    /// <param name="serviceCollection">容器</param>
    /// <returns>注入工具类</returns>
    public static IServiceCollectionHelper SetUpDependencyInjection(
        this IServiceCollection serviceCollection)
    {
        return new ServiceCollectionHelper(serviceCollection);
    }
}